package org.gruposp2p.dnie.service.jpa;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.gruposp2p.dnie.model.DNIeSignedDocumentComment;
import org.gruposp2p.dnie.service.DNIeSignedDocumentCommentDAO;
import org.springframework.stereotype.Repository;

/**
 *
 * @author jj
 */
@Repository("signedDocumentCommentDao")
public class JpaDNIeSignedDocumentCommentDAO 
        implements DNIeSignedDocumentCommentDAO {

    private EntityManager entityManager;

    @PersistenceContext
    public void setEntityManager(EntityManager entityManager) {
            this.entityManager = entityManager;
    }

    public DNIeSignedDocumentComment findById(Integer id) {
        return entityManager.find(DNIeSignedDocumentComment.class, id);
    }

    public DNIeSignedDocumentComment save(DNIeSignedDocumentComment entity) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean delete(Integer commentId) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
